package com.yige.service.mongoService

import com.mongodb.BasicDBObject
import com.mongodb.DBCollection
import com.yige.common.SystemConstant
import com.yige.service.AccountsService
import org.springframework.stereotype.Service

/**
 * Created by sunhao on 2015/11/16 0016.
 */

@Service
class MongoAccountsService extends BasicMongoServiceImp implements AccountsService {
    @Override
    DBCollection getCollection() {
        return mongoTemplate.getCollection(SystemConstant.MONGODB_COL_ACCOUNTS)
    }

//    @Override
//    boolean payAccounts(Object accountId) {
//        getCollection().update([_id:accountId]as BasicDBObject,[status:1]as BasicDBObject)
//        return true
//    }
}
